package com.trg.designmodel.adapter.interfaceAdapter;

/**
 * @ClassName: Client
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/6 11:30
 * @Version: 1.0
 * @Return:
 **/
public class Client {

    public static void main(String[] args) {
        WaterAnmial waterAnmial = new WaterAnmial() {
            @Override
            public void age() {
                System.out.println("age = 5");

            }
        };
        waterAnmial.name();
        waterAnmial.age();
        waterAnmial.type();
        waterAnmial.color();
    }
}
